package com.cloudlead.userAction;

import com.cloudlead.common.worker.web.WorkerServer;
import org.eclipse.jetty.servlet.FilterHolder;
import org.springframework.web.filter.CharacterEncodingFilter;
public class StartServer {

    public static void main(String[] args) throws Exception {
        WorkerServer server = new WorkerServer("用户注册","localhost", 8090);

        FilterHolder characterEncodingHolder = new FilterHolder(
                new CharacterEncodingFilter());
        characterEncodingHolder.setAsyncSupported(true);
        characterEncodingHolder.setInitParameter("encoding", "UTF-8");
        characterEncodingHolder.setInitParameter("forceEncoding", "true");
        server.addFilter(characterEncodingHolder, "/*");

        server.start();
    }
}
